// 找规律
#include <bits/stdc++.h>
using namespace std;
int main() {
    int n = 20*2-1;
    int num = (1 + 38) * 38 / 2;
    int ans = num + (39 + 1) / 2;
    cout << ans << endl;
    return 0;
}